<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<script type="text/javascript" src="${ctx}/scripts/upload/jquery.MultiFile.js"></script>
<script type="text/javascript" src="${ctx}/scripts/jquery/jquery.form.js"></script>
		
<%@ page import="com.msmall.base.util.ConstantDB" language="java"%>
<%@ page import="com.msmall.community.space.util.SpaceConstants" language="java"%>
<c:set var="UNLOCK_STATUS" value="<%=ConstantDB.UNLOCK_STATUS%>"></c:set>
<c:set var="LOCK_STATUS" value="<%=ConstantDB.LOCK_STATUS%>"></c:set>
<c:set var="REPLY" value="<%=ConstantDB.REPLY%>"></c:set>
<c:set var="SPACE_WIDGET_PART_ALBUM" value="<%=SpaceConstants.SPACE_WIDGET_PART_ALBUM%>"></c:set>

由于此相册有照片，将照片转移到以下相册:
<input id="in_albumid" type="hidden" name="albumid" value="${albumid}">
<select id="s_targetid" name="targetid">
	<c:forEach var="albumE" items="${albums }" varStatus="stat">
		<c:choose>
			<c:when test="${albumid == albumE.albumid}"></c:when>
			<c:otherwise>
				<option value="${albumE.albumid}">
					<c:out value="${albumE.title}"></c:out>
					<c:if test="${albumE.lockStatus ==LOCK_STATUS}">
						--已设置密码
					</c:if>
				</option>
			</c:otherwise>
		</c:choose>
	</c:forEach>
</select>
<br/>
<input type="button" onclick="javascript:submitAlbumRemoveTransfer()" value="提交">
<script>
function submitAlbumRemoveTransfer(){
	$.ajax({
		type : "POST",
		url : ctx + "/album/remove.do",
		data : "albumid="+$("#in_albumid").val() +"&targetid="+$("#s_targetid").val(),
		dataType:"xml", 
		timeout:20000,
		success : function(data){
			if($(data).find('result').text().toUpperCase().indexOf("TRUE") >= 0){
				alert("删除成功");
			}else{
			}
			$.fn.colorbox.close();
			spaceIndexNav('<c:out value="${SPACE_WIDGET_PART_ALBUM}"/>');
		},
		error: function(){
		}
	});
}
</script>